//
//  HealthDetailViewController.swift
//  groupTaskTwo
//
//  Created by 刘青昀 on 16/11/3.
//  Copyright © 2016年 向银泉. All rights reserved.
//

import UIKit
import Alamofire

class HealthDetailViewController: UIViewController {
    var ID:String? = nil
    let webView = UIWebView()
    

    override func viewDidLoad() {
        super.viewDidLoad()
        self.view.backgroundColor = UIColor.whiteColor()
        self.webView.frame = self.view.bounds
        self.view.addSubview(self.webView)
        self.getData()
        

    }
    func getData(){
        let urlStr = "http://iapi.ipadown.com/api/food/food.show.detail.php?id=\(self.ID!)"
        let url = NSURL.init(string: urlStr)
        self.webView.loadRequest(NSURLRequest.init(URL: url!))
    
    }
}
